﻿Imports System.Web.Optimization

Public Module BundleConfig

    ' For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
    Public Sub RegisterBundles(ByVal bundles As BundleCollection)

        bundles.Add(New ScriptBundle("~/bundles/jquery").Include(
                    "~/Scripts/jquery-{version}.js"))

        bundles.Add(New ScriptBundle("~/bundles/jqueryval").Include(
                    "~/Scripts/jquery.validate*"))

        bundles.Add(New StyleBundle("~/Content/css").Include(                
                 "~/Content/site.css"))

        ' Use the development version of Modernizr to develop with and learn from. Then, when you're
        ' ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
        bundles.Add(New ScriptBundle("~/bundles/modernizr").Include(
                    "~/Scripts/modernizr-*"))

        'bundles.Add(New ScriptBundle("~/bundles/bootstrap").Include(
        '          "~/Scripts/bootstrap.js",
        '          "~/Scripts/respond.js"))

        bundles.Add(New ScriptBundle("~/bundles/jqwigets").
                    IncludeDirectory("~/App/Vendor/jq-wigets/", "*.js"))


        bundles.Add(New ScriptBundle("~/bundles/appAngularControllers").
                                   IncludeDirectory("~/App/Controllers/", "*.js", True))

        bundles.Add(New ScriptBundle("~/bundles/appAngularFactories").
                                  IncludeDirectory("~/App/Factories/app-factories", "*.js", True).
                                  IncludeDirectory("~/App/Factories/helper-factories", "*.js", True))
        ' IncludeDirectory("~/App/Vendor/jq-wigets/", "*.js").
        'IncludeDirectory("~/App/Vendor/jq-wigets/globalization", "*.js").
        bundles.Add(New ScriptBundle("~/bundles/iNvoiceApp").               
                   Include(
                       "~/App/Vendor/angular-js/angular.js",
                       "~/App/Vendor/angular-ui/ui-router.js",
                       "~/App/Vendor/angular-ui/ui-bootstrap.js",
                       "~/App/Vendor/angular-ui/ui-bootstrap-tpls.js",
                       "~/App/Directives/third-party-directives/dynamic-forms.js",
                       "~/App/Directives/third-party-directives/ng-table.js",
                       "~/App/Vendor/angular-js/angular-animate.js",
                       "~/App/Directives/custom-directives/xv-form-creator.js",
                       "~/App/Templates/form-template.js",
                       "~/App/Templates/type-text-input-template.js",
                       "~/App/iNvoiceApp.js"
                         ))

        '                       "~/App/Controllers/AccordionDemoCtrl.js",
        '                       "~/App/Controllers/invoice-template-creator.js",
        '                       "~/App/Controllers/form-creator-controller.js",
        '                       "~/App/Controllers/table-purchased-item-controller.js",
        '                       "~/App/Controllers/icon-logo-controller.js",
        '                       "~/App/Controllers/modal-icons-controller.js",
        '                       "~/App/Controllers/logo-designer-controller.js",
        '                       "~/App/Controllers/form-personal-info-controller.js",
        '                       "~/App/Controllers/table-headers-definition-ctrl.js",
        '                       "~/App/Controllers/TypeaheadCtrl.js",


        'IncludeDirectory("~/App/Vendor/angular-js", "*.js").
        '          IncludeDirectory("~/App/Vendor/angular-ui", "*.js").
        '          IncludeDirectory("~/App/Directives/custom-directives", "*.js").
        '         IncludeDirectory("~/App/Directives/third-party-directives", "*.js").
        'bundles.Add(New ScriptBundle("~/bundles/iNvoiceApp").
        '          IncludeDirectory("~/App/Vendor/angular-js", "*.js").
        '         IncludeDirectory("~/App/Vendor/angular-ui", "*.js").
        '         IncludeDirectory("~/App/Vendor/jq-wigets", "*.js").
        '         IncludeDirectory("~/App/Vendor/jquery", "*.js").
        '         IncludeDirectory("~/App/Factories/app-factories", "*.js").
        '         IncludeDirectory("~/App/Factories/helper-factories", "*.js").
        '         IncludeDirectory("~/App/Controllers", "*.js").
        '         IncludeDirectory("~/App/Directives/custom-directives", "*.js").
        '         IncludeDirectory("~/App/Directives/third-party-directives", "*.js").
        '         IncludeDirectory("~/App/Templates", "*.js").
        '         IncludeDirectory("~/App", "*.js"))

        '"~/Scripts/App/iNvoiceApp.js"   "~/Scripts/angular-route.js",       "~/Scripts/angular-animate.js",
        ' Set EnableOptimizations to false for debugging. For more information,
        ' visit http://go.microsoft.com/fwlink/?LinkId=301862
        BundleTable.EnableOptimizations = True
    End Sub
End Module

